#ifndef CODEREADER_H
#define CODEREADER_H

#include "../Base.h"
#include "../container/SlidingDict.h"
#include "../container/TripleList.h"
#include <fstream>


class CodeReader
{
public:
    CodeReader();

    void input(ifstream &input, CTripleList& buffer);
    void setDict(size_t iDictSize, size_t iMatchLen);

    void start();

private:
    CSlidingDict* m_pSlidingDict;

    ifstream m_input;
    size_t m_iDictSize;
    size_t m_iMatchLen;

    CTripleList::Triple* code();
};

#endif // CODEREADER_H
